<link rel="stylesheet" type="text/css" href="/modules/profilemodule/css/meeting_request.css">
{form name="meeting_request" no_load_js="true"}
<input type="hidden" name="module" value="profilemodule">
<input type="hidden" name="action" value="meeting_request">
<input type="hidden" name="ajax_action" value="1">
<div class="meeting_request_form">
    <div class="one_half first meeting_leftcolumn">
            {* Meeting Left Column *}
            <div class="control twocontrol_on_row" >
                <label>
                    <span class="label">{$_TR.date}</span>
                    <input class="easyui-datebox"  data-options="required:true" id="date_meeting"  name="meeting_date" style="width:200px">                    

                </label>
            </div>         


            <div class="control twocontrol_on_row" >
                <label>
                    <span class="label">{$_TR.time}</span>                  
                    <select id="hour" class="easyui-combobox" data-options="required:true" style="width: 98px" name="hour">
                        {section name=hour start=0 loop=24}
                        <option value="{$smarty.section.hour.index}"{if $smarty.section.hour.index==8} selected{/if}  >{if $smarty.section.hour.index<10}0{$smarty.section.hour.index}{else}{$smarty.section.hour.index}{/if}</option>
                        {/section}

                    </select>
                    <select id="minute" class="easyui-combobox" data-options="required:true" style="width: 98px" name="minute"> 
                        <option value="00" >00</option>
                        <option value="30" >15</option>
                        <option value="45" >30</option>
                        <option value="45" >45</option>
                    </select>

                </label>
                <font class="_italic">{$_TR.time_desc}</font>
            </div>

            {* Duration *}
            <div class="control twocontrol_on_row">
                <label>
                    <span class="label">{$_TR.meeting_duration}</span>
                    <select class="easyui-combobox" style="width: 200px;" name="meeting_duration">
                        <option value="30" >30 {$_TR.mins}</option>
                        <option value="45" >45 {$_TR.mins}</option>
                        <option value="60" >60 {$_TR.mins}</option>
                        <option value="120" >2 {$_TR.hours}</option>
                        <option value="150" >2.5 {$_TR.hours}</option>
                        <option value="180">3 {$_TR.hours}</option>
                    </select>
                </label>
            </div>

            <div class="control twocontrol_on_row">
                <label>
                    <span class="label">{$_TR.meeting_place}</span>
                    <select class="easyui-combobox" style="width: 200px;" name="meeting_place">
                        <option value="Internet" >{$_TR.internet}</option>
                        <option value="Client Office" >{$_TR.client_office}</option>
                        <option value="Our Office" >{$_TR.our_office}</option>
                        <option value="Order" >{$_TR.other}</option>                      
                    </select>
                </label>
            </div>


            <div class="clearfix"></div>
            {*Meeting place*}


            <div class="control twocontrol_on_row">
                <label>
                    <span class="label">{$_TR.meeting_type}</span>
                    <select class="easyui-combobox" style="width:200px" name="meeting_type">
                        {foreach from=$meeting_type key=k item=v}
                        <option value="{$k}">{$v}</option>
                        {/foreach}
                    </select>
                </label>
            </div>

            {*  meeting language & type *}
            <div class="control twocontrol_on_row" >
                <label>
                    <span class="label">{$_TR.meeting_lang}</span>
                    <select class="easyui-combobox" style="width:200px" name="meeting_language">
                        {foreach from=$meeting_language key=k item=v}
                        <option value="{$k}">{$v}</option>
                        {/foreach}
                    </select>
                </label>
            </div>
            <div class="control">
                <label >
                    <span class="label">{$_TR.tran_request}</span>
                    <select name="translator_request" id="translator_request" class="easyui-combobox" style="width:200px">
                        <option value="0">{$_TR.no}</option>
                        <option value="1">{$_TR.yes}</option>
                    </select>

                </label>
            </div>
            {* Record ?*}
            <div class="control twocontrol_on_row">
                <label >
                    <span class="label">{$_TR.record}</span>
                    <select class="easyui-combobox" style="width:200px" name="meeting_record">
                        <option value="0">{$_TR.no}</option>
                        <option value="1">{$_TR.yes}</option>
                    </select>
                </label>
            </div>
            <div class="control twocontrol_on_row">
                <label>
                    <span class="label">{$_TR.relate}</span>
                    <select class="easyui-combobox" style="width:200px" name="related_lawyer">
                        {foreach from=$relate_type key=k item=v}
                        <option value="{$k}">{$v}</option>
                        {/foreach}
                    </select>
                </label>
            </div>


            <div class="clearfix"></div>


        </div>
        <div class="no_right_border right_column_homepage">
            <div class="right_column_control">
                <div class="control">
                    <label >
                        <span class="label"><b>{$_TR.mentor_request}</b></span>
                        <select name="mentor_request" id="mentor_request" class="easyui-combobox" style="width:200px">
                            <option value="0">{$_TR.no}</option>
                            <option value="1">{$_TR.yes}</option>
                        </select>

                    </label>
                </div>
            </div>
            {control type=textarea name='mentor_required'  label=$_TR.required_expertise rows="5" }
            {control type=textarea name='meeting_notes'  label=$_TR.note cols="25" rows="6" }
            <div class="clearfix"></div>

</div>
</div>

<br>
<input type="button" id='mettingSubmit' value="Submit">
<br>
<br>
{/form}
{literal}
<script type="text/javascript">

    jQuery(".easyui-combobox").combobox({});
    jQuery('#meeting_place').addClass('required'); 
    jQuery('textarea[name="previous_subject"]').addClass('required'); 
    jQuery('textarea[name="new_subject"]').addClass('required'); 
    jQuery('#meeting_request').validate();  

</script>
{/literal}